Repository navigation
docs(id/boards): kind-by-gate inventory (#4114) + resolve_rules active-records fix - #8374
Merged
Merged
Conversation
…e-records fix Phase 4 audit of #4113: every BoardObject variant (15, incl. GamePost) dispositioned against the five gates in the boards.rs module header. One finding, fixed here: resolve_rules considered superseded Rules objects; it now excludes objects superseded through an active supersede record, sharing the frontier computation with compose_view via superseded_objects. Regression test: superseded_rules_are_not_resolved. All other cells hold or are deliberate documented divergences (external content hashes, existence-based has_role at insert, duplicate Rules history).
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 40 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the Phase 4 audit for #4114 (design #4113). Queue task 6019.
What this does
Kind-by-gate inventory — a new section in the
pkgs/id/src/boards.rsmodule header doc dispositioning everyBoardObjectvariant (all 15, includingGamePost, which postdates the #4114 variant list) against the design's five gates:validate_shape)validate_links: existence + board scope, kind where a kind rule exists)compose_view,latest_listings) under the active-records ruleboard_object_set)Every cell holds, or is a deliberate documented divergence (external content hashes —
Attachment::blob,Theme::assets,GamePost::package.hash— are not graph references;has_roleat insert is existence-based for arrival-order independence; duplicate(board, revision)Rules are legal signed history;Attachment::size_bytesis unbounded declared metadata no gate depends on).One finding, fixed here (small, one variant, per the #4114 acceptance):
resolve_rulesconsidered every signedRulesobject, including one superseded through an activeSupersederecord — with the greater content hash in its revision, the superseded text won resolution whilecompose_viewhid the same object. Resolution now excludes actively-superseded objects. The frontier computation is shared withcompose_viewvia a newsuperseded_objectshelper (behaviour-preserving refactor for the view), and a regression test covers the finding:superseded_rules_are_not_resolved(two revision-1 rules, the greater-hash one superseded by the lesser-hash one).Verification
rustfmt --checkclean onboards.rs.cargo teston the laptop did not finish inside the audit shift (theidlib-test build exceeded the session budget under shared laptop load; the finding itself is verified by source inspection — the oldresolve_ruleshad no supersede filter at all). CI is the test verdict for this PR, including the new regression test and the existing boards suite (36 tests at baseline, incl. the rules-resolution proptest, which is unaffected: it inserts no supersede records).A summary of the audit is also posted on design #4113.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.